using System.Collections.Generic;
using MvcMall.Core.Commands;
using MvcMall.Core.Domains;

namespace MvcMall.Core.Contacts.Tasks
{
    public interface IAdminUserTask
    {
        AdminUser GetUser(string userName);
        bool ValidatePower(string userName, string powerCode);
        bool ValidateUser(string userName, string password);
        IEnumerable<AdminMenu> GetUserMenus(string userName);
        IEnumerable<AdminUser> GetAll();
        AdminUser Get(int userId);
        AdminUser EditUserRole(int userId, int roleId);
        AdminUser Create(CreateAdminUserCommand cmd);
        AdminUser ChangePassword(int userId, string password);
    }
}